<?php
class My_Service_File
{
    public function string(){
        return $this;
    }    
    public function getExtension($fileName){
        $exten = explode(".",$fileName);
        $exten = $exten[count($exten)-1]; 
        return $exten;
    }    
}
    